//
//  HNSH_XJDRHeader.m
//  HNSH_SingleProject
//
//  Created by 李宇廷 on 2023/6/15.
//

#import "HNSH_XJDRHeader.h"

@implementation HNSH_XJDRHeader

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.clipsToBounds = YES;
        self.backgroundColor = [UIColor whiteColor];
        [self configUI];
    }
    return self;
}

- (void)configUI {
    UIImageView *cellIcon = [[UIImageView alloc]initWithFrame:CGRectMake(16, 13, 20, 20)];
    cellIcon.image = [UIImage imageNamed:@"xjdr_cell_header_icon"];
    [self addSubview:cellIcon];
    self.iconImgV = cellIcon;
    
    UILabel *cellTtitleLabel = [[UILabel alloc]initWithFrame:CGRectMake(44, 12, 200, 22)];
    cellTtitleLabel.text = @"";
    cellTtitleLabel.textColor = [UIColor appBlackLabelColor];
    cellTtitleLabel.font = [UIFont systemFontOfSize:12];
    [self addSubview:cellTtitleLabel];
    self.titleLabel = cellTtitleLabel;
    
    UIView *bottomView = [[UIView alloc]initWithFrame:CGRectMake(16, 50, kScreenWidth-32, 10)];
    bottomView.backgroundColor = [UIColor colorWithHexString:@"#F8F8F8"];
    [self addSubview:bottomView];
    [self clipCornerWithView:bottomView cornerWidth:8 cornerType:UIRectCornerTopLeft|UIRectCornerTopRight];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
